// 定义基础路由无论登录与否已经在应用当中

const Login = resolve => require.ensure([], () => {
  resolve(require('@/components/login.vue'))
})

const noFind = resolve => require.ensure([], () => {
  resolve(require('@/components/404.vue'))
})

const noAccess = resolve => require.ensure([], () => {
  resolve(require('@/components/common/401.vue'))
})

export default
[
  {
    path: '/login',
    name: '登录',
    component: Login
  },
  {
    path: '/404',
    component: noFind
  },
  {
    path: '/401',
    component: noAccess
  }
]
